package com.itheima.service.pms;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.vo.pms.Product;

import java.util.List;

public interface ProductSevice extends IService<Product> {

    List<Product> pageInfo(int pageNum, int pageSize, Product product);

    Product selectByKeyword(String keyword);

    void updateByIds(List<Integer> ids, Integer deleteStatus);

    void updateWithNewStatus(List<Integer> ids, Integer newStatus);

    void updateWithPublishStatus(List<Integer> ids, Integer publishStatus);

    void updateWithreCommendStatus(List<Integer> ids, Integer recommendStatus);

    void updateWithreVerifyStatus(List<Integer> ids, Integer verifyStatus);

    Product getBy(Integer id);

    long countByStatus(Product product);
}
